import request from '@/axios'
import { OrgRoleType } from './types'

//分页获组织和角色类型关联数据
export const pageApi = (data) => {
  return request.post({ url: '/rbac-server/rbac/orgrole/page', data })
}

//移除组织和角色类型关联数据
export const delApi = (params) => {
  return request.delete({ url: '/rbac-server/rbac/orgrole/delete', params })
}

export const getOrgRoleList = (data): Promise<IResponse<OrgRoleType[]>> => {
  return request.post({ url: '/rbac-server/rbac/orgrole/list', data })
}
